Getting taggedvalues in runtime without code
This page was created by Alexandra on 2018-10-21. Last edited by Edgar on 2025-01-20.

When you use WECPOF, you can create a whole system with the use of the model alone. As you do, you might want to pick up information stored in the TaggedValues of the model.

You can do that like this:

G.allinstances->first.oclType.TaggedValue('Eco.PresentationUnit')

However, this approach will not let you get to TaggedValues on features like attributes or association ends. For this purpose, we added TaggedValueOnFeature.

Use it like this:

G.allinstances->first.oclType.TaggedValueOnFeature('Eco.PresentationUnit','SomeAttribute')